/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.shinyray.project.bpm.activity;

import java.util.Map;
import java.util.Set;
import java.util.logging.Logger;
import org.jbpm.pvm.Execution;
import org.jbpm.pvm.ExternalActivity;
import org.jbpm.pvm.SignalDefinition;

/**
 * 项目审批活动。此活动为人工活动，会生成ProjectTask对象，等待审批者处理。
 * @author Administrator
 */
public class ApproveActivity implements ExternalActivity {
    private Logger logger=Logger.getLogger(ApproveActivity.class.getName());
    private static final long serialVersionUID = 1L;
    //审批环节的名字。例如：项目经理审批
    private String approveName;
    protected long dbid;
    public ApproveActivity() {

    }

    public Set<SignalDefinition> getSignals(Execution arg0) throws Exception {
        return null;
    }

    public void signal(Execution arg0, String arg1, Map<String, Object> arg2) throws Exception {
        logger.info("approve activity");
    }

    public void execute(Execution execute) throws Exception {
        execute.waitForSignal();
    }

}
